import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import echarts from './views/charts/echarts.vue'
import Department from './views/pethome/Department.vue'
import Employee from './views/pethome/Employee.vue'
import User from './views/pethome/User.vue'
import Register from './views/Register.vue'
import ShopCheck from "./views/pethome/ShopCheck";

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/register',
        component: Register,
        name: '商家入驻',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: '组织管理',
        iconCls: 'el-icon-s-grid',//图标样式class
        children: [
            {path: '/Department', component: Department, name: '部门管理'},
            {path: '/Employee', component: Employee, name: '员工管理'},
            {path: '/User', component: User, name: '用户管理'}
        ]
    },
    {
        path: '/',
        component: Home,
        name: '店铺管理',
        iconCls: 'el-icon-s-grid',//图标样式class
        children: [
            {path: '/ShopCheck', component: ShopCheck, name: '店铺审核'}
        ]
    },
    /*    {
            path: '/',
            component: Home,
            name: '宠物寻主',
            iconCls: 'el-icon-chicken',
            children: [
                { path: '/PetSearchMaster', component: PetSearchMaster, name: '寻主审核' },
            ]
        },
        {
            path: '/',
            component: Home,
            name: '订单管理',
            iconCls: 'el-icon-s-order',
            children: [
                { path: '/PetSearchMaster2', component: PetSearchMaster, name: '寻主审核2' },
            ]
        },*/
    {
        path: '/',
        component: Home,
        name: 'Charts',
        iconCls: 'fa fa-bar-chart',
        children: [
            { path: '/echarts', component: echarts, name: 'echarts' }
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;